//
//  BaseNavigationController.m
//  YYBG_IOS
//
//  Created by wyl on 2017/3/7.
//  Copyright © 2017年 wyl. All rights reserved.
//

#import "BaseNavigationController.h"

@interface BaseNavigationController ()

@end

@implementation BaseNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
 

//导航控制器里面
-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    if (self.viewControllers.count >= 1) {
           viewController.hidesBottomBarWhenPushed = YES ;
    }else {
           viewController.hidesBottomBarWhenPushed = NO ;
    }
    
    [super pushViewController:viewController animated:YES];

    
}


@end
